package com.example.test622

import android.app.Application
import com.alibaba.android.arouter.launcher.ARouter
import com.example.net.Dao.DataBase
import com.qiniu.pili.droid.shortvideo.PLShortVideoEnv
import com.tencent.mmkv.MMKV
import com.umeng.commonsdk.UMConfigure
import com.umeng.socialize.PlatformConfig


class App:Application() {
	override fun onCreate() {
		super.onCreate()
		ARouter.openDebug()
		ARouter.openLog()
		ARouter.init(this)
		MMKV.initialize(this)
//初始化
		UMConfigure.init(this,"666a4dd5cac2a664de48a5f1"
			,"umeng",UMConfigure.DEVICE_TYPE_PHONE,"0aa1538f79825795e3d5f8f11a97bd9e");//58edcfeb310c93091c000be2 5965ee00734be40b580001a0
		// QQ设置
		PlatformConfig.setQQZone("101830139","5d63ae8858f1caab67715ccd6c18d7a5")
		PLShortVideoEnv.init(applicationContext)
		
		getDataBase(this)
		
	}
	fun getDataBase(context: Application):DataBase{
		return DataBase.getDataBase(context)
	}
}